package com.wlj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wlj.dto.UserMenuDTO;
import com.wlj.dto.UserResourcesDTO;
import com.wlj.dto.UserRoleDTO;
import com.wlj.form.UserAddForm;
import com.wlj.pojo.TbUser;

import java.util.List;

public interface UserService extends IService<TbUser> {

    UserResourcesDTO getUserAndResources(String username);

    UserRoleDTO getUserAndRoles(String username);

    UserMenuDTO getUserAndMenus(String username);

    List<UserRoleDTO> listUsersAndRole();

    UserRoleDTO getUserAndRoleById(Integer userId);

    TbUser findByUsername(String username);

    void addUser(UserAddForm userAddForm);

    void delUser(Integer userId);
}
